﻿using System.Text.RegularExpressions;

namespace K3R.Validation {
	public static class String {
		public static bool IsEmail(this string value) {
			Regex regex = new Regex(@"^[a-zA-Z0-9._%+-]+@(?:[a-zA-Z0-9-]+\.)+[a-zA-Z]{2,6}$");
			return regex.IsMatch(value);
		}
	}
}
